package cn.telling.product.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import cn.telling.product.dao.IAreaInfoDao;
import cn.telling.product.service.IAreaInfoService;
import cn.telling.product.vo.AreaInfoVo;

/**
 * 
 * @ClassName: AreaInfoServiceImpl 
 * @Description: 区域信息业务服务接口的实现
 * @author 陈赟 
 * @date 2015年6月17日 下午3:49:15 
 *
 */
@Service("areaInfoService")
public class AreaInfoServiceImpl implements IAreaInfoService {
    
    @Autowired
    @Qualifier("areaInfoDao")
    private IAreaInfoDao areaInfoDao;

    @Override
    public AreaInfoVo getAreaInfoByAreaId(String areaId) {
        return areaInfoDao.getAreaInfoByAreaId(areaId);
    }

    @Override
    public AreaInfoVo getAreaInfoByUserId(String userId) {
        return areaInfoDao.getAreaInfoByUserId(userId);
    }

    @Override
    public List<AreaInfoVo> getAreaLsAll() {
        return areaInfoDao.getAreaLsAll();
    }

	@Override
	public List<AreaInfoVo> getAreaLsAllBySupplyId(String supplyId) {
		return areaInfoDao.getAreaLsAllBySupplyId(supplyId);
	}

}
